//
//  ZSNWKWebViewVC.swift
//  AgoraAVPlayerZhaosn
//
//  Created by zhaosuning on 2022/1/11.
//

import UIKit
import WebKit

class ZSNWKWebViewVC: UIViewController {
    
    var link = "https://docs.agora.io/cn/Interactive%20Broadcast/volume_android?platform=Android"

    override func viewDidLoad() {
        super.viewDidLoad()

        // Do any additional setup after loading the view.

        let wkWebView = WKWebView()
        
        wkWebView.frame = CGRect(x: 20, y: 100, width: 260, height: 400)
        wkWebView.backgroundColor = UIColor.red
        self.view.addSubview(wkWebView)
        wkWebView.navigationDelegate = self
        wkWebView.load(NSURLRequest(url: NSURL(string: link)! as URL) as URLRequest)

    }

}


extension ZSNWKWebViewVC: WKNavigationDelegate {
    
    func webView(_ webView: WKWebView, didFinish navigation: WKNavigation!) {

    }
}
